#include <list>
#ifndef STRUCTURES
#define STRUCTURES
#include "structures.h"
#endif

class Q4 {
public:	
	Q4(list<Structures::process>);
	void schedule();
	void print();
private:
	void scheduleProcesses();
	list<Structures::process> processes;
	list<Structures::processor> processors;
	long tick;
	long tick_count;
	long probability;
	int num_finished;
	int num_processes;
};